package muse.widgets;

import java.awt.*;
import javax.swing.JPanel;

public class MuseWidget extends Widget {

    boolean imgInitted = false;
    Toolkit tk = Toolkit.getDefaultToolkit();
    Image museImg = tk.getImage(getClass().getClassLoader().getResource("muse/resources/muse_smileyGuy.png"));
	@Override
	public Dimension getPreferredSize() {
            return new Dimension(128,128);
            
	}

	@Override
	public String getIcon() {
		return "";
	}
        
        public MuseWidget()
        {
            this.setLayout(new BorderLayout());
            
            
            imgInitted = true;
            JPanel all = new JPanel(){
                public void paintComponent(Graphics g)
                {
                    
                    g.drawImage(museImg, getWidth()/2 - museImg.getWidth(null)/2, getHeight()/2 - museImg.getHeight(null)/2, null);
                }
            };
            
            this.add(all);
        }
}
